package com.example.inter.tourdemo.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.inter.tourdemo.R;
import com.example.inter.tourdemo.bean.ClassifyRightBean;

import java.util.List;

/**
 * 地方特产 适配器 右列表
 * @author zhaoyu
 * @date 2017/2/12.
 */

public class ClassifyAdapterRight extends BaseQuickAdapter<ClassifyRightBean, BaseViewHolder> {

    List mClassifyRightList ;

    public ClassifyAdapterRight(int layoutResId, List data) {
        super(layoutResId, data);
        mClassifyRightList=data;
    }

    @Override
    protected void convert(BaseViewHolder helper, ClassifyRightBean bean) {
        helper.setImageResource(R.id.iv_goods,bean.icon);

        helper.setText(R.id.tv_title_name,bean.title);
        helper.setText(R.id.classify_price,bean.price);
        helper.setText(R.id.tv_evaluateCount,bean.evaluateCount);
        helper.setText(R.id.tv_evaluateCount,bean.evaluatesPercent);
    }
}
